package com.yc.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.time.LocalDateTime;

/**
 * 测评分类实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("testCategories")
public class TestCategory {
    
    @TableId(value = "categoryId", type = IdType.AUTO)
    private Long categoryId;
    
    @TableField("name")
    private String name;
    
    @TableField("description")
    private String description;
    
    @TableField("icon")
    private String icon;
    
    @TableField("sortOrder")
    private Integer sortOrder;
    
    @TableField("status")
    private Integer status;  //1-启用 0-禁用
    
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(value = "updateTime", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    // 非数据库字段：测评数量统计
    @TableField(exist = false)
    private Integer testCount;
} 